package com.线程池;

public class RunnableDemo implements Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 5; i++) {
            System.out.println(Thread.currentThread().getName()+"hello world==>"+i);
        }

        try {
            System.out.println(Thread.currentThread().getName()+"本线程休眠了");
            Thread.sleep(1000000);//休眠
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
